﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IllustratedCsharp7_ch20_Linq
{
    class chapt20_4QueryVariable
    {
        static void _Main()
        {
            int[] numbers = { 2, 5, 28 };
            IEnumerable<int> lowNums = from n in numbers  //返回一个枚举器
                                       where n < 20
                                       select n;

            int numsCounett = (from n in numbers            //返回一个整数
                               where n < 10
                               select n).Count();

        }
    }
}
